import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
const routes: Array<RouteRecordRaw> = [
    {
        path: "/",
        name: "/",
        redirect: '/home',
        meta: {
            title: "首页"
        }
    },
    {
        path: '/home',
        name: 'home',
        component: () => import('@/views/father.vue')
    },
    {
        path: '/next',
        name: 'next',
        component: () => import('@/views/charts.vue')
    }
    
]

const router = createRouter({
    history: createWebHistory(),
    routes
})
export default router
